package com.example.spring.bean.load08lifecycle.javaJSR;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 *
 */
public class LCTest3 {

    public static void main(String[] args) {

        /**
         * Peach...constructor....
         * Peach...postConstruct...
         * IOC容器初始化完成。。。
         * Peach...preDestroy...
         */

        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(InitConfig.class);
        System.out.println("IOC容器初始化完成。。。");
        Object peach = context.getBean("peach");

        context.close();

    }
}
